package com.baosight.risk.service.rire.entity;

import com.baosight.risk.base.entity.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;
import java.util.Date;
import javax.persistence.*;

import lombok.Data;

/**
 * Table: T_RIRE_RISK_TARGET
 * 重点风险指标
 */
@Data
@ApiModel
@Table(name = "T_RIRE_RISK_TARGET")
public class RireRiskTarget extends BaseEntity {

    /**
     * 重点风险ID
     * <p>
     * <p>
     * Table:     T_RIRE_RISK_TARGET
     * Column:    IMPORT_GUID
     * Nullable:  true
     */
    @ApiModelProperty("重点风险ID")
    @Column(name = "IMPORT_GUID")
    private String importGuid;

    /**
     * 风险点ID
     * <p>
     * Table:     T_RIRE_RISK_TARGET
     * Column:    RISK_ID
     * Nullable:  false
     */
    @ApiModelProperty("风险点ID")
    @Column(name = "RISK_ID")
    private String riskId;

    /**
     * 披露报告ID
     * <p>
     * Table:     T_RIRE_RISK_TARGET
     * Column:    IMPORT_REPORT_GUID
     * Nullable:  true
     */
    @ApiModelProperty("披露报告ID")
    @Column(name = "IMPORT_REPORT_GUID")
    private String importReportGuid;

    /**
     * 指标编号
     * <p>
     * Table:     T_RIRE_RISK_TARGET
     * Column:    TARGET_NO
     * Nullable:  true
     */
    @ApiModelProperty("指标编号")
    @Column(name = "TARGET_NO")
    private String targetNo;

    /**
     * 指标名称
     * <p>
     * Table:     T_RIRE_RISK_TARGET
     * Column:    TARGET_NAME
     * Nullable:  true
     */
    @ApiModelProperty("指标名称")
    @Column(name = "TARGET_NAME")
    private String targetName;

    /**
     * 指标说明
     * <p>
     * Table:     T_RIRE_RISK_TARGET
     * Column:    TARGET_DESC
     * Nullable:  true
     */
    @ApiModelProperty("指标说明")
    @Column(name = "TARGET_DESC")
    private String targetDesc;

    /**
     * 指标类型
     * <p>
     * Table:     T_RIRE_RISK_TARGET
     * Column:    TARGET_TYPE
     * Nullable:  true
     */
    @ApiModelProperty("指标类型")
    @Column(name = "TARGET_TYPE")
    private String targetType;

    /**
     * 指标类型说明
     * <p>
     * Table:     T_RIRE_RISK_TARGET
     * Column:    TARGET_TYPE_NAME
     * Nullable:  true
     */
    @ApiModelProperty("指标类型说明")
    @Column(name = "TARGET_TYPE_NAME")
    private String targetTypeName;

    /**
     * 指标分类（先行指标、关键指标）
     * <p>
     * Table:     T_RIRE_RISK_TARGET
     * Column:    TARGET_CLASS
     * Nullable:  true
     */
    @ApiModelProperty("指标分类（先行指标、关键指标）")
    @Column(name = "TARGET_CLASS")
    private String targetClass;

    /**
     * 指标类型说明
     * <p>
     * Table:     T_RIRE_RISK_TARGET
     * Column:    TARGET_CLASS_NAME
     * Nullable:  true
     */
    @ApiModelProperty("指标类型说明")
    @Column(name = "TARGET_CLASS_NAME")
    private String targetClassName;

    /**
     * 计量单位
     * <p>
     * Table:     T_RIRE_RISK_TARGET
     * Column:    UNIT
     * Nullable:  true
     */
    @ApiModelProperty("计量单位")
    @Column(name = "UNIT")
    private String unit;

    /**
     * 指标标准值
     * <p>
     * Table:     T_RIRE_RISK_TARGET
     * Column:    STANDARD_VALUE
     * Nullable:  true
     */
    @ApiModelProperty("指标标准值")
    @Column(name = "STANDARD_VALUE")
    private String standardValue;

    /**
     * 参考值（系统生成）
     * <p>
     * Table:     T_RIRE_RISK_TARGET
     * Column:    REFENCE_VALUE
     * Nullable:  true
     */
    @ApiModelProperty("参考值（系统生成）")
    @Column(name = "REFENCE_VALUE")
    private String refenceValue;

    /**
     * 当前指标值
     * <p>
     * Table:     T_RIRE_RISK_TARGET
     * Column:    TARGET_VALUE
     * Nullable:  true
     */
    @ApiModelProperty("当前指标值")
    @Column(name = "TARGET_VALUE")
    private String targetValue;

    /**
     * 下期预测值
     * <p>
     * Table:     T_RIRE_RISK_TARGET
     * Column:    NEXT_VALUE
     * Nullable:  true
     */
    @ApiModelProperty("下期预测值")
    @Column(name = "NEXT_VALUE")
    private String nextValue;

    /**
     * 季度
     * <p>
     * Table:     T_RIRE_RISK_TARGET
     * Column:    QUARTER_CODE
     * Nullable:  true
     */
    @ApiModelProperty("季度")
    @Column(name = "QUARTER_CODE")
    private String quarterCode;

    /**
     * 季度
     * <p>
     * Table:     T_RIRE_RISK_TARGET
     * Column:    QUARTER_NAME
     * Nullable:  true
     */
    @ApiModelProperty("季度")
    @Column(name = "QUARTER_NAME")
    private String quarterName;

    /**
     * 单位编码
     * <p>
     * Table:     T_RIRE_RISK_TARGET
     * Column:    COMP_CODE
     * Nullable:  true
     */
    @ApiModelProperty("单位编码")
    @Column(name = "COMP_CODE")
    private String compCode;

    /**
     * 单位名称
     * <p>
     * Table:     T_RIRE_RISK_TARGET
     * Column:    COMP_NAME
     * Nullable:  true
     */
    @ApiModelProperty("单位名称")
    @Column(name = "COMP_NAME")
    private String compName;

    /**
     * 排序
     * <p>
     * Table:     T_RIRE_RISK_TARGET
     * Column:    ROW_ORDER
     * Nullable:  true
     */
    @ApiModelProperty("排序")
    @Column(name = "ROW_ORDER")
//    private String rowOrder;
    private  Integer rowOrder;
    /**
     * 定性/定量/值集
     * <p>
     * Table:     T_RIRE_RISK_TARGET
     * Column:    QUANTITY_FLAG
     * Nullable:  true
     */
    @ApiModelProperty("定性/定量/值集")
    @Column(name = "QUANTITY_FLAG")
    private String quantityFlag;

    /**
     * 定性/定量中文
     * <p>
     * Table:     T_RIRE_RISK_TARGET
     * Column:    QUANTITY_FLAG_C
     * Nullable:  true
     */
    @ApiModelProperty("定性/定量中文")
    @Column(name = "QUANTITY_FLAG_C")
    private String quantityFlagC;

    /**
     * 值集编码
     * <p>
     * Table:     T_RIRE_RISK_TARGET
     * Column:    DD_TYPE_CODE
     * Nullable:  true
     */
    @ApiModelProperty("值集编码")
    @Column(name = "DD_TYPE_CODE")
    private String ddTypeCode;

    /**
     * 值集名称
     * <p>
     * Table:     T_RIRE_RISK_TARGET
     * Column:    DD_TYPE_NAME
     * Nullable:  true
     */
    @ApiModelProperty("值集名称")
    @Column(name = "DD_TYPE_NAME")
    private String ddTypeName;

    /**
     * 预测标识（Y-是N-否）
     * <p>
     * Table:     T_RIRE_RISK_TARGET
     * Column:    FORECAST_FLAG
     * Nullable:  true
     */
    @ApiModelProperty("预测标识（Y-是N-否）")
    @Column(name = "FORECAST_FLAG")
    private String forecastFlag;

    /**
     * 修改标识（Y-是N-否）
     * <p>
     * Table:     T_RIRE_RISK_TARGET
     * Column:    UPDATE_FLAG
     * Nullable:  true
     */
    @ApiModelProperty("修改标识（Y-是N-否）")
    @Column(name = "UPDATE_FLAG")
    private String updateFlag;

    /**
     * 修改原因）
     * <p>
     * Table:     T_RIRE_RISK_TARGET
     * Column:    UPDATE_REASON
     * Nullable:  true
     */
    @ApiModelProperty("修改原因")
    @Column(name = "UPDATE_REASON")
    private String updateReason;

    /**
     * N-内部指标/W-外部指标
     * <p>
     * Table:     T_RIRE_RISK_TARGET
     * Column:    RISK_SOURCE
     * Nullable:  true
     */
    @ApiModelProperty("N-内部指标/W-外部指标")
    @Column(name = "RISK_SOURCE")
    private String riskSource;

    /**
     * N-内部指标/W-外部指标）
     * <p>
     * Table:     T_RIRE_RISK_TARGET
     * Column:    RISK_SOURCE_NAME
     * Nullable:  true
     */
    @ApiModelProperty("N-内部指标/W-外部指标")
    @Column(name = "RISK_SOURCE_NAME")
    private String riskSourceName;

    /**
     * 管理单位编码
     * <p>
     * Table:     T_RIRE_RISK_TARGET
     * Column:    MANAGE_COMP_CODE
     * Nullable:  true
     */
    @Column(name = "MANAGE_COMP_CODE")
    private String manageCompCode;

    /**
     * 管理单位名称
     * <p>
     * Table:     T_RIRE_RISK_TARGET
     * Column:    MANAGE_COMP_NAME
     * Nullable:  true
     */
    @Column(name = "MANAGE_COMP_NAME")
    private String manageCompName;

    /**
     * 披露报告是否打印指标所属单位
     * <p>
     * Table:     T_RIRE_RISK_TARGET
     * Column:    COMP_FLAG
     * Nullable:  true
     */
    @Column(name = "COMP_FLAG")
    private String compFlag;

}